sum_of_square, square_of_sum = 0, 0
for i in range(101):
    sum_of_square += i*i
    square_of_sum += i
square_of_sum *= square_of_sum
print(f"{sum_of_square}, {square_of_sum}")
print(f"{square_of_sum-sum_of_square}")
